package com.example.books.Service.Impl;

import com.example.books.Dao.NoticeDao;
import com.example.books.Pojo.NoticeDO;
import com.example.books.Service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class NoticeServiceImpl implements NoticeService {

    @Autowired
    private NoticeDao noticeDao;

    @Override
    public List<NoticeDO> getNotices() {
        return noticeDao.getNotice();
    }

    @Override
    public boolean setNotices(Map<String, Object> map) {
        return noticeDao.setNotice(map);
    }

    @Override
    public boolean updateNotices(Map<String, Object> map) {
        return noticeDao.updateNotice(map);
    }

    @Override
    public boolean deleteNotices(Map<String, Object> map) {
        return noticeDao.deleteNotice(map);
    }
}
